package com.example.usermanagement.entity;

import com.example.usermanagement.anno.State;
import lombok.Data;
import lombok.NonNull;

import java.util.Date;

/**
 *  校园卡实体类
 *
 * @author Tranjoy
 * @date 2025/3/30
 * */

@Data
public class CampusCard {

    @NonNull // 添加非空注解，用于在编译时检查是否为空
    private String cardId;
    private Long userId;
    private Double balance;
    @State
    private String status; // ACTIVE/LOST/INACTIVE
    private Date issueDate;
    private Date lastRechargeDate;
}